<template>
    <div>
        <Table border :columns="columns1" :data="data1">
            
        </Table>
        <!-- <div class="page-div">
            <Page
            class="tab-page"
            :total="data1.length"
            :current="parmes.currentPage"
            :page-size="parmes.pageSize"
            @on-change="pageChange"
            @on-page-size-change="sizeChange"
            show-elevator
            show-sizer
            show-total
            />
        </div> -->
    </div>
</template>
<script>
export default {
    props:['detailObj'],
    data(){
        return{
            data1:[],
            params:{
                currentPage:1,
                pageSize:10,
            },
            columns1:[
                {
                    title: '序号',
                    align: 'center',
                    render: (h, params) => {
                        return h('span', params.index + (this.params.currentPage- 1) * this.params.currentPage + 1);
                    }
                },
                {
                    title: '管控措施',
                    key: 'measures',
                    align: 'center'
                },
                {
                    title: '项目部管控部门',
                    key: 'projectManagementDepartmentName',
                    align: 'center'
                },
                {
                    title: '项目分管领导',
                    key: 'projectManagementLeaderName',
                    align: 'center'
                },
                {
                    title: '项目主管领导',
                    key: 'leaderInChargeOfProjectDepartmentName',
                    align: 'center'
                }
            ]
        }
    },
    mounted(){},
    methods: {
        setData(){
            setTimeout(()=>{
                if(this.detailObj.riskOperationDtoList){
                    this.data1 = this.detailObj.riskOperationDtoList[0].measuresDtoList
                }else{
                    this.data1 = []
                }
            },1000)
        },
        pageChange(){},
        sizeChange(){}
    }
}
</script>